/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.service;

import com.seari.bean.DeviceList;
import com.seari.mapper.DeviceListMapper;
import com.seari.pojo.QueryDeviceList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Rainbow
 */
@Service("deviceListService")
public class DeviceListServiceImpl implements DeviceListService
{

    @Autowired
    DeviceListMapper dlm;
    
    @Override
    public int getDeviceListIdByIndex(String deviceIndex)
    {
        return dlm.getDeviceListIdByIndex(deviceIndex);
    }

    @Override
    public int insertOrUpdateDeviceList(List<DeviceList> deviceLists,String lineID)
    {
        return dlm.insertOrUpdateDeviceList(deviceLists,lineID);
    }

    @Override
    public int deleteDeviceListByDeviceIndex(List<DeviceList> deviceLists,String lineID)
    {
        return  dlm.deleteDeviceListByDeviceIndex(deviceLists,lineID);
    }

    @Override
    public List<DeviceList> getDeviceListByParams(QueryDeviceList qdl)
    {
        return dlm.getDeviceListByParams(qdl);
    }
    
    @Override
    public int getDeviceListCount(QueryDeviceList qdl)
    {
        return dlm.getDeviceListCount(qdl);
    }

    @Override
    public List<String> getDeviceListStationID(QueryDeviceList qdl)
    {
        return dlm.getDeviceListStationID(qdl);
    }

    @Override
    public List<String> getDeviceListSystemID(QueryDeviceList qdl)
    {
        return dlm.getDeviceListSystemID(qdl);
    }

    @Override
    public List<String> getDeviceListDevID(QueryDeviceList qdl)
    {
        return dlm.getDeviceListDevID(qdl);
    }
    @Override
    public List<String> getDeviceListLineID(QueryDeviceList qdl)
    {
        return dlm.getDeviceListLineID(qdl);
    }


    
}
